package com.mebs.model.service.commercial;

import org.jt.jet.content.JetNamedObject;

/**
 * @author Alexander V. Ivanov
 */
public enum CommercialReportType implements JetNamedObject {
    TYPE_1(1, "type_1", "Commercial Properties Report");

    public final int type;
    public final String name;
    public final String title;

    CommercialReportType(int type, String name, String title)
    {
        this.type = type;
        this.name = name;
        this.title = title;
    }

    public static CommercialReportType getObjectByType(int type)
    {
        return CommercialReportType.values()[type - 1];
    }

    public Object getObjectId()
    {
        return type;
    }

    public String getObjectName()
    {
        return name;
    }

    public int getType()
    {
        return type;
    }

    public String getName()
    {
        return name;
    }

    public String getTitle()
    {
        return title;
    }

    public String toString()
    {
        return name;
    }
}
